package com.vtech.ws.cxf.service.impl;

import com.vtech.ws.cxf.entity.Greeting;
import com.vtech.ws.cxf.service.InfoService;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * TODO
 *
 * @author houzhiwei
 * @date 2018/8/12 10:53
 */
@Service
public class InfoServiceImpl implements InfoService {

    @Override
    public Greeting sayHowAreYou(String name) {
        Greeting greeting = new Greeting();
        greeting.setMessage("How are you " + name + "!!!");
        greeting.setDate(new Date());
        return greeting;
    }
}
